import java.util.Scanner;
public class TriangleProgram {

	public static void main(String[] args) {
		float angle1;
		float angle2;
		float angle3;
		int option;
		Scanner scan = new Scanner (System.in);
		System.out.println ("Welcome to the triangle program");
		do{
			System.out.println("Input the first angle");
			 angle1=scan.nextFloat();
			System.out.println("Input the second angle");
			angle2=scan.nextFloat();
			System.out.println ("Input the third angle");
			angle3=scan.nextFloat();
			float result = angle1 +angle2+ angle3;
			if (result == 180){
				System.out.println ("This is a regular triangle");
			}else{
				System.out.println ("This does not make a triangle");
			}
			System.out.println ("Would you like to continue? 1 = Yes 2 = no");
			option=scan.nextInt();
		}
		while (option == 1);

	}

}
